package city.spring.modules.medicalstation.drugwarehouse.service;

import city.spring.modules.medicalstation.drugwarehouse.entity.DrugwarehouseEntity;
import city.spring.modules.medicalstation.drugwarehouse.vo.DrugwarehouseVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Service：医护站药品入库
 *
 * @author 谢金婷
 * @date 2020-09-21 17:00:56
 */
public interface DrugwarehouseService extends IService<DrugwarehouseEntity> {
    String CACHE_NAME = "drugwarehouse";

    /**
     * 业务处理：保存一个 <strong>医护站药品入库</strong>
     *
     * @param entity 医护站药品入库
     */
    void saveDrugwarehouse(DrugwarehouseEntity entity);

    /**
     * 业务处理：修改一个 <strong>医护站药品入库</strong>
     *
     * @param entity 医护站药品入库
     */
    void updateDrugwarehouse(DrugwarehouseEntity entity);

    /**
     * 业务处理：删除一个 <strong>医护站药品入库</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteDrugwarehouse(Integer primaryKey);

    /**
     * 业务处理：删除多个 <strong>医护站药品入库</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteDrugwarehouse(List<Integer> primaryKeys);

    IPage<DrugwarehouseVO> listPage(Page<? extends DrugwarehouseEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DrugwarehouseEntity> wrapper);

    IPage<DrugwarehouseVO> otherlistPage(Page<? extends DrugwarehouseEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DrugwarehouseEntity> wrapper);
}